package pervasivePositioning.pos;

import android.location.Location;

public class Coordinate {
		public double x;
		public double y;
		public double z;
		
		public Coordinate(double x1, double y1, double z1) {
			x=x1;
			y=y1;
			z=z1;
		}
		
		public Coordinate(float[] values) {
			x = y = z = 0;
			if(values != null) {
				x=values[0];
				y=values[1];
				z=values[2];
			}
		}
		
		public Coordinate(Location loc) {
			x = loc.getLatitude();
			y = loc.getLongitude();
			z = loc.getAltitude();
		}
		
		
}
